#include "TXLib.h"
#include <iostream>

void Figure (float x, float y, float n);

int main()
	{
		float x, y, n;
		std::cout << "Enter x: ";
		std::cin >> x;

		std::cout << "Enter y: ";
		std::cin >> y;
		
		std::cout << "Enter n: ";
		std::cin >> n;
		
		txCreateWindow (500, 500);
		
		Figure (x, y, n);
	}

void Figure (float x, float y, float n)
	{
		txSetFillColor (RGB(0,255,0));
		txSetColor (RGB(0,255,0));
		txRectangle (x, y, (x+50)*n, (y+150)*n);
		txRectangle ((x+50)*n, (y+50)*n, (x+100)*n, (y+100)*n);	
	}